<?php
class FormButton extends Renderable {
	
	private $text;
	private $buttonType;
	
	public function __construct($elementId, $text, $buttonType) {
		
		parent::__construct($elementId);
		
		$this->text = $text;
		$this->buttonType;
	}
	
	protected function renderElement() {
		
		echo '<button type="', $this->buttonType, '" ', $this->formatAttributes(), ' >', $this->text, '</button>';
	}
}